<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class NetworkBussinessValidate extends  Validate{



    protected $rule =   [
        'name'=> 'require',
        'business_type_id'=> 'require',
        'cost_money'=> 'require',
        'cost_time'=> 'require',
        'cooperation_startime'=> 'require',
        'cooperation_endtime'=> 'require',
        'tran_rules_id'=> 'require',
        'time_requirements'=>'require'
    ];

    protected $message  =   [
        'name.require' => '业务名称不能为空',
        'business_type_id.require' => '业务类型不能为空',
        'cost_money.require' => '合作费用不能为空',
        'cost_time.require' => '合作时间类型不能为空',
        'cooperation_startime.require' => '合作开始时间不能为空',
        'cooperation_endtime.require' => '合作结束时间不能为空',
        'tran_rules_id.require' => '运输规则不能为空',
        'time_requirements.require' => '时间要求不能为空',
    ];
}